<?php get_header();?>
<?php get_sidebar();?>
<div id="primary">
              <div class="post-nav">
                  <span class="previous floatleft">
                 <?php previous_posts_link('Previous post');?>
                  </span>                  
                  <span class="next floatright">
                  <?php next_posts_link('Next post');?>
                  </span>
              </div><!--End .post-nav-->
             <?php //include(TEMPLATEPATH.'/feature.php');?>
             <?php //query_posts('showposts=8&cat=-8');?>
              <?php if (have_posts()) : while(have_posts()) : the_post(); ?>
              	<?php wp_link_pages('before=<p><strong>Trang:</strong>&after=</p>&next_or_number=number&pagelink= %');?>
              <div class="post-item">              
                  <a href="<?php the_permalink();?>"><img src="<?php echo get_post_meta($post->ID,'thumbnail',true);?>" alt="post image" width="149" /></a>
                  <h1><a href="<?php the_permalink();?>"><?php the_title();?></a></h1>
                  <p class="metadata"><span class="post">Posted by:</span> <?php the_author();?> <span class="in-cat">In:</span><?php the_category(', ');?>
                  <span class="on-date">On:</span> <?php the_time('F j, Y');?> <a href="<?php comments_link();?>"><?php comments_number('1','2','%');?></a> Comments</p>
                  <p><?php the_content('');?>  </p>
                  <?php wp_link_pages();?>
                  <p><a class="more-link floatright" href="<?php the_permalink();?>">Read More</a></p>
              </div><!--End .post-item-->
              <?php endwhile;?>
              <?php else : ?>
              <p> Sorry there are no post to display.</p>
              <?php endif;?>             
</div><!--End #primary-->

<?php get_footer();?>      